projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee35aa
)
gtk3-demo: Don't leak in the sizegroup example
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 13 May 2014 19:50:23 +0000
(15:50 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 13 May 2014 19:50:23 +0000
(15:50 -0400)
Nobody was cleaning up the size group.
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=645966
demos/gtk-demo/sizegroup.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/sizegroup.c
b/demos/gtk-demo/sizegroup.c
index c15b78b9386cadf72dbacd50e7054a41d1c91f1a..e38340195a6f0384831b119211022092fafa7c53 100644
(file)
--- a/
demos/gtk-demo/sizegroup.c
+++ b/
demos/gtk-demo/sizegroup.c
@@
-120,6
+120,7
@@
do_sizegroup (GtkWidget *do_widget)
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+ g_object_set_data_full (G_OBJECT (window), "size-group", size_group, g_object_unref);
/* Create one frame holding color options */
frame = gtk_frame_new ("Color Options");